﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Data;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;

namespace OgilvyOne.BLL
{
    public class MediaContactBll
    {
        /// <summary>
        /// 获取媒体联系人信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public IList getContactus(MediaContactModel cum)
        {
            return MediaContactFactory.create().getContactus(cum);
        }
        /// <summary>
        /// 删除媒体信息
        /// </summary>
        /// <param> </param>
        /// <returns></returns>
        public bool delete(int mcid)
        {
            return MediaContactFactory.create().delete(mcid);
        }
        /// <summary>
        /// 添加媒体信息
        /// </summary>
        /// <param> </param>
        /// <returns></returns>
        public int Add(MediaContactModel cum)
        {
            return MediaContactFactory.create().Add(cum);
        }
        /// <summary>
        /// 获取媒体信息
        /// </summary>
        /// <param> </param>
        /// <returns></returns>
        public MediaContactModel Get(int mcid)
        {
            return MediaContactFactory.create().Get(mcid);
        }
        /// <summary>
        /// 更新媒体信息
        /// </summary>
        /// <param> </param>
        /// <returns></returns>
        public int Update(MediaContactModel cum)
        {
            return MediaContactFactory.create().Update(cum);
        }
    }
}
